﻿using System.Data;
using LibDataLayer;


namespace LibBusinessLayer
{
    public class BllToppics
    {
        #region[Get-Data]
        public DataTable GetTopics(string keywords)
        {
            return DalTopics.GetTopics(keywords);
        }
        public DataTable GetTopicsEdit(int id)
        {
            return DalTopics.GetTopicsEdit(id);
        }
        public DataTable GetTopicsFillterStatus(int IsActive)
        {
            return DalTopics.GetTopicsFillterStatus(IsActive);
        }
        public DataTable GetTopicsFillterCategories(int Cid)
        {
            return DalTopics.GetTopicsFillterCategories(Cid);
        }
        public DataTable GetTopicsFid(int Fid)
        {
            return DalTopics.GetTopicsFid(Fid);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOTopics obj)
        {
            return DalTopics.Insert(obj);
        }
        public static bool Update(DTOTopics obj)
        {
            return DalTopics.Update(obj);
        }
        public static bool Delete(DTOTopics obj)
        {
            return DalTopics.Delete(obj);
        }
        public static bool UpdateCheck(DTOTopics obj)
        {
            return DalTopics.UpdateCheck(obj);
        }
        public static bool UpdateNumView(DTOTopics obj)
        {
            return DalTopics.UpdateNumView(obj);
        }
        #endregion

        #region[Get-Data-HomePage]
        public DataTable GetTopicsHomePage(string keywords,int Fid)
        {
            return DalTopics.GetTopicsHomePage(keywords,Fid);
        }
        #endregion
    }
}